# app/Dockerfile

FROM streamlit/app:v1

EXPOSE 8502

WORKDIR /app02

RUN git clone https://gitee.com/vencen/BackgroundRemoval.git .

RUN pip3 install -r requirements.txt

ENTRYPOINT ["streamlit", "run", "bg_remove.py", "--server.port=8502", "--server.address=0.0.0.0"]

# docker build -t streamlit/app:v2 .
# docker run -d --name=BackgroundRemoval -p 8502:8502 -v /root/streamlit_apps/:/app02 streamlit/app:v2